/*
 * @Descripttion: 
 * @version: 
 * @Author: 高月飞
 * @Date: 2023-11-24 01:28:07
 * @LastEditors: 高月飞
 * @LastEditTime: 2023-11-25 09:38:33
 */
import Mock from 'mockjs'

export default [
  //图标请求数据
  // 月数据
  {
    url: '/api/dashoard/month',
    method: 'get',
    response: () => {
      return {
        code: 200,
        msg: 'sucess',
        data: {
          ...Mock.mock({
            'series|2': [
              {
                "name": "@cname",
                "type": 'line',
                "stack": 'Total',
                'data|12': [
                  {
                    'value': '@integer(50, 300)',
                  },
                ],
              }],
            'xAxis|1': [
              {
                "type": 'category',
                "boundaryGap": false,
                "data": ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
              }
            ]
          })

        }
      }
    }
  },
  // 周数据
  {
    url: '/api/dashoard/week',
    method: 'get',
    response: () => {
      return {
        code: 200,
        msg: 'sucess',
        data: {
          ...Mock.mock({
            'series|2': [
              {
                "name": "@cname",
                "type": 'line',
                "stack": 'Total',
                'data|7': [
                  {
                    'value': '@integer(50, 300)',
                  },
                ],
              }],
            'xAxis|1': [
              {
                "type": 'category',
                "boundaryGap": false,
                "data": ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日'],
              }
            ]
          })

        }
      }
    }
  },
  // 日数据
  {
    url: '/api/dashoard/day',
    method: 'get',
    response: () => {
      return {
        code: 200,
        msg: 'sucess',
        data: {
          ...Mock.mock({
            'series|2': [
              {
                "name": "@cname",
                "type": 'line',
                "stack": 'Total',
                'data|24': [
                  {
                    'value': '@integer(50, 900)',
                  },
                ],
              }],
            'xAxis|1': [
              {
                "type": 'category',
                "boundaryGap": false,
                data: [
                  '00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00',
                  '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00',
                  '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'
                ]
              }
            ]
          })

        }
      }
    }
  },
  // 列表数据
  {
    url: '/api/dashoard/board',
    method: 'get',
    response: () => {
      return {
        code: 200,
        msg: 'sucess',
        data: {
          ...Mock.mock({
            'tableData|1': [
              {
                'tableHeader': '公告栏',
                'tableType': 'BulletinVue',
                'Data|4': [
                  {
                    'id|+1': 1,
                    'noticedata': '@date("yyyy-MM-dd")',
                    'notice': '@sentence',
                  },
                ]
              }
            ]
          })

        }
      }
    }
  },

  //排行
  {
    url: '/api/dashoard/dayranking',
    method: 'get',
    response: () => {
      return {
        code: 200,
        msg: 'sucess',
        data: {
          ...Mock.mock({
            'series|1': [
              {
                "name": "@cname",
                "type": 'bar',
                "stack": 'Total',
                'data|7': [
                  {
                    'value|+1': ['@integer(50, 900)'],
                  },
                ],
              }],
            'yAxis|1': [
              {
                "type": 'category',
                "data": ["@cname", "@cname", "@cname", "@cname", "@cname", "@cname", "@cname"]
              }
            ]
          })

        }
      }
    }
  },
  // 随机卡片
  {
    url: '/api/dashoard/card',
    method: 'get',
    response: () => {
      return {
        code: 200,
        msg: 'sucess',
        data: {
          ...Mock.mock({
            'card|1': [
              {
                'customerInfo': '@ctitle(2, 4)', 
                'customerName': '@name',
                'cardData': '@integer(111111111111111, 999999999999999)',
                'monthComparisonPercentage': '@float(0, 100, 2, 2)',
                'yearComparisonPercentage': '@float(0, 100, 1, 2)',
                'monthComparisonColor': '@color', 
                'yearComparisonColor': '@color',
                'yearBoolean': '@boolean',
                'monthBoolean': '@boolean',
              }],
          })

        }
      }
    }
  },

]